<?php


namespace Modules\Common\Models;


use Modules\Common\Models\Validation\ActivationCodeUsageValidation;


class ActivationCodeUsage extends BaseModel
{
    protected $connection = 'mysql';
    protected $table = 'activation_code_usage';
    use ActivationCodeUsageValidation;
    
    public function subscriptionTypes()
    {
        return $this->belongsTo(SubscriptionTypes::class, 'subscription_type_id');
    }
    
    public function user()
    {
        return $this->belongsTo(Users::class, 'user_id');
    }
}
